package com.xinzhi.yjyz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinzhi.entity.Keeper;
import com.xinzhi.entity.Retention;
import com.xinzhi.yjyz.mapper.KeeperMapper;
import com.xinzhi.yjyz.mapper.RetentionMapper;
import com.xinzhi.yjyz.service.IKeeprtService;
import com.xinzhi.yjyz.service.IRetentionService;
import org.springframework.data.annotation.Reference;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RetentionServiceImpl extends ServiceImpl<RetentionMapper, Retention> implements IRetentionService {
    @Resource
    private RetentionMapper retentionMapper;

    @Override
    public Object findByPage(Integer currentPage, Integer pageSize) {
        return retentionMapper.selectPage(new Page<>(currentPage,pageSize),new QueryWrapper<Retention>());
    }
}
